<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/10/31
 * Time: 11:39
 * Project name: PHPTEST
 * File name: getimagesize.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

$remote_png_url = 'http://www.runoob.com/wp-content/themes/w3cschool.cc/assets/img/logo-domain-green2.png';
$img_data = getimagesize($remote_png_url);
print_r($img_data );

$img = imagecreatefrompng($remote_png_url);

echo "图像宽度：",imagesx( $img ),"<br />";
echo "图像高度：",imagesy( $img );